from model.models import BalancePayment, CashPayment, PointsPayment, CouponPayment, Page, Transaction
from view.views import render_transaction

def run():
    transactions = [
        Transaction("小明", Page("点餐页面"), BalancePayment(), "两套摄影套餐", 30),
        Transaction("小红", Page("商城页面"), CashPayment(), "一袋猫粮", 50),
        Transaction("小黄", Page("优惠券页面"), CouponPayment(), "一次体验套餐", 2),
        Transaction("小黑", Page("积分兑换页面"), PointsPayment(), "三箱猫粮", 300),
        Transaction("小花", Page("积分兑换页面"), PointsPayment(), "一次宠物养护服务", 40)
    ]

    for transaction in transactions:
        render_transaction(transaction)
